<?php

namespace app\admin\validate;

class DirectoryValidate extends Validate
{
    protected $rule = [
        'dir|路径'          => 'require',
        'filename'=>'require'
    ];

    protected $message = [
        'dir.require' => '请上传路径',
        'filename.require' => '文件名称不能为空',
    ];

    protected $scene = [

        'get' => ['dir'],
        'check' => ['dir','filename'],
    ];


}
